package edu.sctu.practice.class02.lvchang.assign03.test3;

/**
 * Created by Administrator on 2015/10/27.
 */
public class Name implements Cloneable {

    protected String firstName;
    protected String middleName;
    protected String lastName;

    public Name(String firstName, String middleName, String lastName) {
        this.firstName = firstName;
        this.middleName = middleName;
        this.lastName = lastName;
    }

    public String getName() {
        return firstName + middleName + lastName;
    }

    public Object clone() {
        Object o = null;
        try {
            o = (Name) super.clone();
        } catch (CloneNotSupportedException ex) {
            return null;
        }

        return o;
    }
}
